# @Version : 1.0
# @Author  : wxz
# @File    : user_ext_info_dao.py
# @Time    : 2025/6/2 14:31
# @Describe: 描述...
from fastapi.params import Depends
from sqlmodel import Session

from apps.user.data_model.user_ext_info_model import UserExtInfo
from database.mysql.mysql_client import MySQLClient


class UserExtInfoDAO:

    def __init__(self, db_session: Session = Depends(MySQLClient.get_db_session),):
        self.db_session = db_session

    def save(self, user_ext_info: UserExtInfo):
        self.db_session.add(user_ext_info)
